﻿<div ng-controller="merchantBankCardController">
    <div class="wrapper border-bottom white-bg page-heading">
        <div class="col-lg-pull-12">
            <ol class="breadcrumb">
                <li><a href="javascript:void(0)" ng-click="goBack()">银行卡</a></li>
                <li class="active" ng-bind="breadcrumb"></li>
            </ol>
        </div>
    </div>
    <form name="_form" class="form-horizontal w5c-form" w5c-form-validate="model.validateOptions" role="form" novalidate>
        <div class="form-group">
            <div class="col-sm-6">
                <label class="col-sm-4 control-label">昵称</label>
                <div class="col-sm-8 form-control-static">
                    {{model.merchant.name}}
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-6">
                <label class="col-sm-4 control-label">账号</label>
                <div class="col-sm-8 form-control-static">
                    {{model.merchant.mobile}}
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-6">
                <label class="col-sm-4 control-label">银行卡户名</label>
                <div class="col-sm-8 form-control-static">
                    {{model.account_name}}
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-6">
                <label class="col-sm-4 control-label">银行卡号</label>
                <div class="col-sm-8 form-control-static">
                    {{model.account_num}}
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-6">
                <label class="col-sm-4 control-label">银行名称</label>
                <div class="col-sm-8 form-control-static">
                    {{model.bank_name}}
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-6">
                <label class="col-sm-4 control-label">支行名称</label>
                <div class="col-sm-8 form-control-static">
                    {{model.branch_name}}
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-6">
                <label class="col-sm-4 control-label">提交时间</label>
                <div class="col-sm-8 form-control-static">
                    {{model.update_time}}
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-6">
                <label class="col-sm-4 control-label">手持身份证照片</label>
                <div class="col-sm-8 form-control-static">
                    <img ng-src="{{site.img_url+model.hand_id_card_img}}" class="img-thumbnail" ng-show="model.hand_id_card_img" width="320" height="180">
                    <a style="cursor:pointer;" ng-click="open_img(model.hand_id_card_img)">预览</a>
                </div>
            </div>
        </div>

        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">状态</label>
            <div class="col-sm-2">
                <select name="status" class="form-control input-sm" ng-model="model.status_value" required>
                    <option ng-repeat="x in model.e_status_list" value="{{x.value}}">{{x.text}}</option>
                </select>
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">备注</label>
            <div class="col-sm-10">
                <textarea keditor="editConfig" name="content" class="form-control input-sm" ng-model="model.content" rows="4" w5c-dynamic-element ng-change="textAreaChanged(200)"></textarea>
                <span ng-show="_form.description.$invalid && !_form.description.$pristine" class="w5c-error">请填写描述</span>
                <span class="help-block" id="textcount">0/200</span>
            </div>
        </div>

        <div ng-if="model.status == 3 || model.status == 4">
            <div class="form-group">
                <div class="col-sm-6">
                    <label class="col-sm-4 control-label">审核时间</label>
                    <div class="col-sm-8 form-control-static">
                        {{model.audit_time}}
                    </div>
                </div>
                <div class="col-sm-6">
                    <label class="col-sm-4 control-label">操作人</label>
                    <div class="col-sm-8 form-control-static">
                        {{model.audit_user.nick}}
                    </div>
                </div>
            </div>
        </div>

        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label"></label>
            <div class="col-sm-3">
                <button ng-if="(model.status == 1 || model.status == 2) || model.id == 0" type="submit" w5c-form-submit="save()" class="btn btn-primary btn-sm" btn-loading="psdisabled.save" loading-text="保存中..." ng-disabled="psdisabled.save">
                    <i class="fa fa-save"></i> 保存
                </button>
                <button ng-if="model.status == 1 || model.status == 2" ng-click="goBack()" class="btn btn-primary btn-sm"><i class="fa fa-rotate-left"></i> 取消</button>
                <button ng-if="model.status == 3 || model.status == 4" ng-click="goBack()" class="btn btn-primary btn-sm"><i class="fa fa-rotate-left"></i> 返回</button>
            </div>
        </div>
    </form>
</div>

<script type="text/ng-template" id="imgshow.html">
    <div class="modal-header">
        <h3 class="modal-title">图片</h3>
        <img src="{{site.img_url+img_url}}" width="500" />
    </div>

</script>